// detail.js
Page({

  data:{
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
      var id = options.id;
      var detail = require('../../data/detail.js').detail;
      this.setData({
        detail:detail
      })
      wx.showShareMenu({
        withShareTicket: true
      })
  },
  showToast:()=>{
    // wx.showToast({
    //   title: '提示title',
    //   icon: 'success',
    //   image: '',
    //   duration: 0,
    //   mask: true,
    //   success: function(res) {},
    //   fail: function(res) {},
    //   complete: function(res) {},
    // })
  },
  showModal:()=>{
    wx.showModal({
      title: 'title',
      content: 'content',
      showCancel: true,
      cancelText: 'no',
      cancelColor: '#e56cc7b',
      confirmText: 'ok',
      confirmColor: '#00ff00',
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },
  onShareAppMessage:()=>{
     wx.showActionSheet({
       itemList: [
         "分享到QQ",
         "分享到微信",
         "分享到朋友圈"
       ],
     })
  }
  
});